package com.inossem.warehousestorage_inossem.request.outStorage;

import com.inossem.warehousestorage_inossem.request.Request;

/**
 * Created by leij on 2017/6/12.
 */

public class OutStorageSaleDefaultBatchRequest extends Request {

//    private static final String MATERIEL_CODE = "materielCode";//物料编码
//
//    private static final String NUMBER = "number";//数量
//
//    private static final String WERKS = "werks";//工厂
//
//    private static final String INVENTORYA_DDRESS_CODE = "inventoryAddressCode";//库存地点
//
//    public static String request(Context context, String materielCode, String number, String werks, String inventoryAddress, GsonBeanListener gsonBeanListener) {
//        String tag;
//        OutStorageSaleGetDefaultBatchRequestBean outStorageSaleGetBatchBean = new OutStorageSaleGetDefaultBatchRequestBean();
//        outStorageSaleGetBatchBean.setMat_id(materielCode);
//        outStorageSaleGetBatchBean.setFty_id(werks);
//        outStorageSaleGetBatchBean.setLocation_id(inventoryAddress);
//        outStorageSaleGetBatchBean.setReceipt_type("42");
//        outStorageSaleGetBatchBean.setOut_qty(number);
//        Gson gson = new Gson();
//        String json = gson.toJson(outStorageSaleGetBatchBean, OutStorageSaleGetDefaultBatchRequestBean.class);
//        String url = RequestManage.getUrl(context, RequestConstant.URL_OUT_STORAGE_SALE_DEFAULT_BATCH);
//        tag = RequestManage.getHttpsPostWithLoading(context, url, json, new StringRequestListener() {
//            @Override
//            public void onSuccess(StringResponse stringRequestResponse) {
//                Gson gson = new Gson();
//                OutStorageSaleGetDefaultBatchBean bean = gson.fromJson(stringRequestResponse.getResponseInfo(), OutStorageSaleGetDefaultBatchBean.class);
//                excuteJsonBeanNew(context, bean, bean.getHead().getError_code(), bean.getHead().getError_string(), gsonBeanListener);
//            }
//        });
//        return tag;
//    }

}
